package com.cyou.gamehistory.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.cyou.gamehistory.entity.Manager;
import com.cyou.gamehistory.repository.ManagerDao;

/**
 * 后台管理员------业务
 * <p> gamehistory-service </p>
 * @author wangzhang
 * date 2012-12-19 下午12:09:37
 */
@Component
public class ManagerService {
	@Autowired
	private ManagerDao managerDao;
	
	public Manager getManager(String username,String password){
		Map<String, String> map=new HashMap<String, String>();
		map.put("username", username);
		map.put("password",password);
		return managerDao.getManager(map);
	}
	public void updateManager(Manager manager){
		managerDao.updateManager(manager);
	}
	

}
